// import request from '@/utils/request';

const request={
    post:()=>{
        return Promise.resolve({ data: [] })
    },
    get:()=>{
        return Promise.resolve({ data: [] })
    }
}

const VUE_APP_ENV = 'preview'

// 查询厂的配置
export const mapWorkshop = (body) => request.post('/map/mapWorkshop/queryList', body);

// 查询跳闸接口
export const getTrip = (params) => request.get('/map/queryLine/getTrip', { params: { ...params } });

// 查询地市配置列表
export const mapCity = (body) => request.post('/map/mapCity/queryCityList?type=1', body);

// 首页查询展示线路和场站
export const queryLine = (body) => request.post('/map/queryLine/getLineAndPoint', body);

// 首页查询展示线路和场站(后端计算箭头关键帧插值接口)
export const queryLine2 = (body) => request.post('/map/queryLine/getLineAndPoint2', body);

// 查询有功值
export const queryValue = (body) => request.post(VUE_APP_ENV === 'preview' ? '/map/queryLine/getLineValue' : '/map/queryLine/queryValue', body);

// 查询站图URL
export const jumpUrl = (params) => request.get('/map/queryLine/jumpUrl', { params: { ...params } });
